

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;

public class GeneradorEjercicio3Azar {
	
	private static String sano = "#";
	private static String roto = "_";

	public static void main(String[] args) throws Exception {
		
		BufferedWriter bw = null;
		bw = new BufferedWriter(new FileWriter(new File("/home/chudi/workspace/algo32009vamosaverquesale/algo3/TP1/src/Tp1Ej3_saco13.in")));

		for (int l = 0; l < 10; l++) {
			for (int i = 250; i > 0 ; i--) {
				bw.append(Integer.toString(i));
				bw.newLine();
				System.out.println(i);
				for (int j = 0; j < i; j++) {
					for (int k = 0; k < i; k++) {
						int num =  (int) Math.ceil(Math.random() * 100);
						if( num % (int) 11 == 0 ){
							bw.append(roto);
						} else {
							bw.append(sano);
						}
					}
				bw.newLine();
				}
			}
		}
		bw.append("-1");
		bw.close();
	}
}
